package com.StarStudio.Service;

import com.ruoyi.common.core.Entity.Orders;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface OrderService {
    List<Orders> findOrdersList(Orders orders);

    long findAllRecordNumber();

    void NewOrder(Orders orders);

    void UpdateOrder(Orders orders);

    void CancelOrder(long order_id);

    List<Orders> findGoodsOrdersList(Orders orders);

    List<Orders> findCouponsOrdersList(Orders orders);

    long findAllGoodsRecordNumber();

    long findAllCouponsRecordNumber();

    void OrderInsert(Orders orders);

    int New_order_number_today(String today);

    long findAllRecordForAdmin();


    List<Orders> findOrdersByStoreIdAndTime(Long store_id,String today);

    List<Orders> findOrdersByStoreId(Long store_id);

    List<Long> findPurchaseUserToday( Long store_id,String today);

    List<Long> findPurchaseUserTotal(Long store_id);



}
